import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/education_everyday_quiz_entity.g.dart';


@JsonSerializable()
class EducationEverydayQuizEntity {

	EducationEverydayQuizEntity();

	factory EducationEverydayQuizEntity.fromJson(Map<String, dynamic> json) => $EducationEverydayQuizEntityFromJson(json);
	late String duration = '';
	late List<EducationEverydayQuizQuestionAllList> questionAllList = [];
	late int questionCount = 0;
	late List<EducationEverydayQuizQuestionList> questionList = [];
	late List<EducationEverydayQuizQuestionListOne> questionListOne = [];
	late int questionScore = 0;
	late String questionTypeDicId = '';
	late String timeCount = '';

	Map<String, dynamic> toJson() => $EducationEverydayQuizEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class EducationEverydayQuizQuestionAllList {

	EducationEverydayQuizQuestionAllList();

	factory EducationEverydayQuizQuestionAllList.fromJson(Map<String, dynamic> json) => $EducationEverydayQuizQuestionAllListFromJson(json);
	late String companyCode = '';
	late String createBy = '';
	late String createById = '';
	late String createDate = '';
	late String deleted = '';
	late int duration = 0;
	late String id = '';
	late String myValidity = '';
	late String optionA = '';
	late String optionB = '';
	late String optionC = '';
	late String optionD = '';
	late String parsing = '';
	late String questionMain = '';
	late String questionTypeDicId = '';
	late String questionValidity = '';
	late int score = 0;
	late String textbookId = '';
	late String timeCount = '';
	late String updateBy = '';
	late String updateById = '';
	late String updateDate = '';

	Map<String, dynamic> toJson() => $EducationEverydayQuizQuestionAllListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class EducationEverydayQuizQuestionList {

	EducationEverydayQuizQuestionList();

	factory EducationEverydayQuizQuestionList.fromJson(Map<String, dynamic> json) => $EducationEverydayQuizQuestionListFromJson(json);
	late String id = '';
	late String optionA = '';
	late String optionB = '';
	late String optionC = '';
	late String optionD = '';
	late String questionMain = '';
	late String questionTypeDicId = '';
	late int score = 0;

	Map<String, dynamic> toJson() => $EducationEverydayQuizQuestionListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class EducationEverydayQuizQuestionListOne {

	EducationEverydayQuizQuestionListOne();

	factory EducationEverydayQuizQuestionListOne.fromJson(Map<String, dynamic> json) => $EducationEverydayQuizQuestionListOneFromJson(json);
	late String addDate = '';
	late String companyCode = '';
	late String createBy = '';
	late String createById = '';
	late String createDate = '';
	late String id = '';
	late String optionA = '';
	late String optionB = '';
	late String optionC = '';
	late String optionD = '';
	late String parsing = '';
	late String questionMain = '';
	late String questionTypeDicId = '';
	late String questionValidity = '';
	late int score = 0;
	late String textbookId = '';
	late int type = 0;
	late String updateBy = '';
	late String updateById = '';
	late String updateDate = '';
	late String userId = '';

	Map<String, dynamic> toJson() => $EducationEverydayQuizQuestionListOneToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
